<template>
  <div class="app-container">
    <div>
      <el-row :gutter="20">
        <el-col :span="6" :xs="24">
          <user-card />
        </el-col>

        <el-col :span="18" :xs="24">
          <el-card>
            <el-tabs v-model="activeTab">
              <el-tab-pane label="正在借阅" name="activity">
                <activity />
              </el-tab-pane>
              <el-tab-pane label="借阅记录" name="timeline">
                <timeline />
              </el-tab-pane>
              <el-tab-pane label="个人信息" name="account" :user="user">
                <account :user="user" />
              </el-tab-pane>
            </el-tabs>
          </el-card>
        </el-col>

      </el-row>
    </div>
  </div>
</template>
<script>
import UserCard from '@/views/reader/components/UserCard'
import Activity from '@/views/reader/components/Activity'
import Account from '@/views/reader/components/Account'
import Timeline from '@/views/reader/components/Timeline'

export default {
  name: 'ReaderHome',
  components: { UserCard, Activity, Timeline, Account },
  data() {
    return {
      activeTab: 'activity',
      user: {
        name: '',
        number: '',
        contact: '',
        level: ''
      }
    }
  }
}
</script>

<style scoped>

</style>
